package com.jinmei.dao;

import java.text.ParseException;
import java.util.Date;
import java.util.List;

import org.springframework.dao.DataAccessException;

import com.jinmei.model.WorkSchedule;

public interface WorkScheduleDao {
	
	public List<WorkSchedule> findAllWorkSchedules() throws DataAccessException;
	
	public List<WorkSchedule> findWorkSchedulesByDate(String startDate, String endDate) throws DataAccessException, ParseException;
	
	public List<WorkSchedule> findWorkSchedulesByDate(Date workDate) throws DataAccessException;
	
	public List<WorkSchedule> findWorkSchedulesByDateAndType(String workingDate, String workingType) throws DataAccessException, ParseException; 

	public void saveOrUpdate(List<WorkSchedule> entities) throws DataAccessException;
	
	public void delete(List<WorkSchedule> entities) throws DataAccessException;
}
